﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;

namespace PDAServer
{
    internal  class ConfigDatas
    {
        public static string K3ServerUrl {
            get ;
            private set;
        }

        public static void  Initial()
        {
            K3ServerUrl = "http://192.168.0.115/k3cloud/";
            KingdeeAccounts = new Dictionary<string, string>();
            // select FDATACENTERID,FNAME from T_BAS_DATACENTER_L where FLOCALEID='2052'
            string[] acs = ConfigurationManager.AppSettings.Get("DataCenters").Split(';');
            string[] ac;
            foreach (string s in acs) {

                ac = s.Split(',');
                KingdeeAccounts.Add(ac[0].Trim(),ac[1].Trim());

            }


           
        }


        public static Dictionary<string, string> KingdeeAccounts;
       

        

    }
}